%{
#include <analex_pcod.h>
#define printLst 

char u_lex[80];
unsigned int ligne=1;


%}

%%
[ \t] ; /*Ignore espaces et tabulations*/

\%\% {
	strcpy(u_lex, yytext);
	return TABLE_SYMBOLE;
}

[0-9]{5} {
	strcpy(u_lex,yytext);
	return NUM_LIGNE;
}


[A-Z]+ {
	strcpy(u_lex,yytext);
	return OPERATEUR;
}

#[^\n]* {		
	strcpy(u_lex,yytext);		
	return COMMENTAIRE;		
}

\-?[0-9]+ {
	strcpy(u_lex,yytext);
	return PARAMETRE;
}

\-?[0-9]*\.[0-9]+ {
	strcpy(u_lex,yytext);
	return PARAMETRE;
}

\"[^\"]*\" {
	yytext[strlen(yytext)-1] = '\0';
	strcpy(u_lex,yytext+1);
	return PARAMETRE;
}

\'[^\']\' {
	strcpy(u_lex,yytext);
	return PARAMETRE;
}

\, {
	strcpy(u_lex,yytext);
	return VIRGULE;
}

[a-z0-9A-Z_]+ {
	strcpy(u_lex,yytext);
	return CHAINE_TABLE_SYMBOLE;
}

\n ;

%%

